<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	
<%@page import="java.util.Iterator"%>
<%@page import="java.util.List"%>
<%@page import="java.util.ArrayList"%>
<%@page import="br.com.bean.AlunoBean"%>
<%@page import="br.com.controller.AlunoController"%>
<%@page import="br.com.connection.ConnectionFactory"%>
<%@page import="java.sql.Connection"%>
<%@page import="java.sql.ResultSet;"%>


<%
	String query = request.getParameter("q");
	String valores = "";
	try {

		Connection conn = new ConnectionFactory().getConnection();
	valores = AlunoController.Autocomplete(conn, query);
	} catch (ClassNotFoundException e) {
		System.out.println("Erro de configuracao" + e.getException());
	}
	response.getWriter().println(valores);
%>